package cn.lyl.org.mapper;

import cn.lyl.org.domain.Shop;
import cn.lyl.basic.mapper.BaseMapper;
import cn.lyl.org.dto.ShopDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2023-02-04
 */
public interface ShopMapper extends BaseMapper<Shop> {

    /**
     * 店铺入驻查重方法
     * @param shop
     * @return
     */
    Shop findByNameAndAddress(Shop shop);

    /**
     * 修改审核状态
     * @param
     * @param shopId
     */
    void updateState(@Param("state") Integer state, @Param("shopId") Long shopId);

    List<ShopDto> echarts();
}
